<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html 
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>RSpec results</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Expires" content="-1" />
  <meta http-equiv="Pragma" content="no-cache" />
  <style type="text/css">
  body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-size: 80%;
  }
  </style>
  <script type="text/javascript">
    // <![CDATA[
function moveProgressBar(percentDone) {
  document.getElementById("rspec-header").style.width = percentDone +"%";
}
function makeRed(element_id) {
  document.getElementById(element_id).style.background = '#C40D0D';
  document.getElementById(element_id).style.color = '#FFFFFF';
}

function makeYellow(element_id) {
  if (element_id == "rspec-header" && document.getElementById(element_id).style.background != '#C40D0D')
  {
    document.getElementById(element_id).style.background = '#FAF834';
    document.getElementById(element_id).style.color = '#000000';
  }
  else
  {
    document.getElementById(element_id).style.background = '#FAF834';
    document.getElementById(element_id).style.color = '#000000';
  }
}

    // ]]>
  </script>
  <style type="text/css">
#rspec-header {
  background: #65C400; color: #fff; height: 4em;
}

.rspec-report h1 {
  margin: 0px 10px 0px 10px;
  padding: 10px;
  font-family: "Lucida Grande", Helvetica, sans-serif;
  font-size: 1.8em;
  position: absolute;
}

#summary {
  margin: 0; padding: 5px 10px;
  font-family: "Lucida Grande", Helvetica, sans-serif;
  text-align: right;
  top: 0px;
  right: 0px;
  float:right;
}

#summary p {
  margin: 0 0 0 2px;
}

#summary #totals {
  font-size: 1.2em;
}

.example_group {
  margin: 0 10px 5px;
  background: #fff;
}

dl {
  margin: 0; padding: 0 0 5px;
  font: normal 11px "Lucida Grande", Helvetica, sans-serif;
}

dt {
  padding: 3px;
  background: #65C400;
  color: #fff;
  font-weight: bold;
}

dd {
  margin: 5px 0 5px 5px;
  padding: 3px 3px 3px 18px;
}

dd.spec.passed {
  border-left: 5px solid #65C400;
  border-bottom: 1px solid #65C400;
  background: #DBFFB4; color: #3D7700;
}

dd.spec.failed {
  border-left: 5px solid #C20000;
  border-bottom: 1px solid #C20000;
  color: #C20000; background: #FFFBD3;
}

dd.spec.not_implemented {
  border-left: 5px solid #FAF834;
  border-bottom: 1px solid #FAF834;
  background: #FCFB98; color: #131313;
}

dd.spec.pending_fixed {
  border-left: 5px solid #0000C2;
  border-bottom: 1px solid #0000C2;
  color: #0000C2; background: #D3FBFF;
}

.backtrace {
  color: #000;
  font-size: 12px;
}

a {
  color: #BE5C00;
}

/* Ruby code, style similar to vibrant ink */
.ruby {
  font-size: 12px;
  font-family: monospace;
  color: white;
  background-color: black;
  padding: 0.1em 0 0.2em 0;
}

.ruby .keyword { color: #FF6600; }
.ruby .constant { color: #339999; }
.ruby .attribute { color: white; }
.ruby .global { color: white; }
.ruby .module { color: white; }
.ruby .class { color: white; }
.ruby .string { color: #66FF00; }
.ruby .ident { color: white; }
.ruby .method { color: #FFCC00; }
.ruby .number { color: white; }
.ruby .char { color: white; }
.ruby .comment { color: #9933CC; }
.ruby .symbol { color: white; }
.ruby .regex { color: #44B4CC; }
.ruby .punct { color: white; }
.ruby .escape { color: white; }
.ruby .interp { color: white; }
.ruby .expr { color: white; }

.ruby .offending { background-color: gray; }
.ruby .linenum {
  width: 75px;
  padding: 0.1em 1em 0.2em 0;
  color: #000000;
  background-color: #FFFBD3;
}

  </style>
</head>
<body>
<div class="rspec-report">

<div id="rspec-header">
  <div id="label">
    <h1>RSpec Code Examples</h1>
  </div>

  <div id="summary">
    <p id="totals">&nbsp;</p>
    <p id="duration">&nbsp;</p>
  </div>
</div>

<div class="results">
<div class="example_group">
  <dl>
  <dt id="example_group_1">Project</dt>
    <script type="text/javascript">moveProgressBar('7.6');</script>
    <dd class="spec passed"><span class="passed_spec_name">should create a new instance given valid attributes</span></dd>
  </dl>
</div>
<div class="example_group">
  <dl>
  <dt id="example_group_2">Project should not create a new record given not valid attributes</dt>
    <script type="text/javascript">moveProgressBar('15.3');</script>
    <dd class="spec passed"><span class="passed_spec_name">should not create a new record given the address is blank</span></dd>
    <script type="text/javascript">moveProgressBar('23.0');</script>
    <dd class="spec passed"><span class="passed_spec_name">should not create a new record given the summary is blank</span></dd>
    <script type="text/javascript">moveProgressBar('30.7');</script>
    <dd class="spec passed"><span class="passed_spec_name">should not create a new record given the feature is blank</span></dd>
    <script type="text/javascript">moveProgressBar('38.4');</script>
    <dd class="spec passed"><span class="passed_spec_name">should not create a new record given the adress is already taken by another saved project</span></dd>
  </dl>
</div>
<div class="example_group">
  <dl>
  <dt id="example_group_3">ProjectSnapshot</dt>
    <script type="text/javascript">moveProgressBar('46.1');</script>
    <dd class="spec passed"><span class="passed_spec_name">should desc</span></dd>
  </dl>
</div>
<div class="example_group">
  <dl>
  <dt id="example_group_4">HomeHelper</dt>
    <script type="text/javascript">moveProgressBar('53.8');</script>
    <dd class="spec passed"><span class="passed_spec_name">should be included in the object returned by #helper</span></dd>
  </dl>
</div>
<div class="example_group">
  <dl>
  <dt id="example_group_5">ProjectHelper</dt>
    <script type="text/javascript">moveProgressBar('61.5');</script>
    <dd class="spec passed"><span class="passed_spec_name">should be included in the object returned by #helper</span></dd>
  </dl>
</div>
<div class="example_group">
  <dl>
  <dt id="example_group_6">ProjectController routes for delete</dt>
    <script type="text/javascript">moveProgressBar('69.2');</script>
    <dd class="spec passed"><span class="passed_spec_name">should use 'delete_project' route when delete a project</span></dd>
  </dl>
</div>
<div class="example_group">
  <dl>
  <dt id="example_group_7">ProjectController GET 'index'</dt>
    <script type="text/javascript">moveProgressBar('76.9');</script>
    <dd class="spec passed"><span class="passed_spec_name">should find and show all the projects created</span></dd>
  </dl>
</div>
<div class="example_group">
  <dl>
  <dt id="example_group_8">ProjectController DELETE 'delete'</dt>
    <script type="text/javascript">moveProgressBar('84.6');</script>
    <dd class="spec passed"><span class="passed_spec_name">should delete a project and it's child:project_snapshot,then redirect to index when delete request mehthod </span></dd>
    <script type="text/javascript">moveProgressBar('92.3');</script>
    <dd class="spec passed"><span class="passed_spec_name">should only redirect to index when else requests method</span></dd>
    <script type="text/javascript">moveProgressBar('100.0');</script>
    <dd class="spec passed"><span class="passed_spec_name">should not delete any record and only redirect to index when delete a nonexisting project</span></dd>
  </dl>
</div>
<script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>1.891 seconds</strong>";</script>
<script type="text/javascript">document.getElementById('totals').innerHTML = "13 examples, 0 failures";</script>
</div>
</div>
</body>
</html>
